using System;
using System.Configuration;
namespace RabbitMQ.Gateway.Config
{
	public class Exchange : ConfigurationElement
	{
		[ConfigurationProperty("name", DefaultValue = "", IsRequired = true)]
		public string Name
		{
			get
			{
				return (string)base["name"];
			}
			set
			{
				base["name"] = value;
			}
		}
		[ConfigurationProperty("connection", DefaultValue = "", IsRequired = true)]
		public string Connection
		{
			get
			{
				return (string)base["connection"];
			}
			set
			{
				base["connection"] = value;
			}
		}
		[ConfigurationProperty("type", DefaultValue = "direct", IsRequired = true)]
		public ExchangeType Type
		{
			get
			{
				return (ExchangeType)base["type"];
			}
			set
			{
				base["type"] = value;
			}
		}
		[ConfigurationProperty("autodelete", DefaultValue = true, IsRequired = false)]
		public bool AutoDelete
		{
			get
			{
				return (bool)base["autodelete"];
			}
			set
			{
				base["autodelete"] = value;
			}
		}
		[ConfigurationProperty("durable", DefaultValue = false, IsRequired = false)]
		public bool Durable
		{
			get
			{
				return (bool)base["durable"];
			}
			set
			{
				base["durable"] = value;
			}
		}
	}
}
